package org.hegang.design.first.builderpattern;

import org.hegang.design.first.builderpattern.impl.ChickenBurger;
import org.hegang.design.first.builderpattern.impl.Coke;
import org.hegang.design.first.builderpattern.impl.Pepsi;
import org.hegang.design.first.builderpattern.impl.VegBurger;

/**
 * @ClassName MealBuilder
 * @Describe: 建造类
 * @Author: gang.he
 * @Email: SmileSkylife@outlook.com
 * @Date: Created in 22:53 2019/7/1
 * @Modified_By: TODO
 * @Version: V1.0
 */
public class MealBuilder {
    public Meal prepareVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
